﻿using System;

namespace Moonlite.Data.EditorInterop
{
    public class PlacedObjects : IDeserializedObject
    {
        private int version;
        private DeserializedObjectCollection children = new DeserializedObjectCollection();

        public int Version
        {
            get { return version; }
        }

        public DeserializedObjectCollection Children
        {
            get { return children; }
        }

        public override int GetHashCode()
        {
            return version.GetHashCode();
        }

        public override string ToString()
        {
            return "[PlacedObjects Version=" + version.ToString() + "]";
        }

        internal PlacedObjects(int version)
        {
            if (version < 0)
            {
                throw new ArgumentOutOfRangeException("version");
            }

            this.version = version;
        }
    }
}
